package com.ts.web.dao;

import java.util.List;


import com.ts.common.util.bean.Admin;
import com.ts.common.util.bean.Cases;
import com.ts.common.util.bean.Itemmm;
import com.ts.common.util.bean.Kehu;
import com.ts.common.util.bean.Orders;


import com.ts.common.util.bean.News;

public interface ICommonDao {
	Admin getAdminByUsername(String username) throws Exception;

	void saveOrUpdateNews(News news) throws Exception;

	void saveOrUpdateCase(Cases cases) throws Exception;

	List<News> getNews(int count, String type) throws Exception;

	News getNews(String id) throws Exception;

	Cases getCases(String id) throws Exception;

	List<Cases> getCases(int cc) throws Exception;

	int getTotalRowsByCases(int cc) throws Exception;

	void saveOrUpdateItems(Itemmm itemmm) throws Exception;

	Itemmm getItemmm(String id) throws Exception;

	void deleteOrUpdateItems(Itemmm itemmm) throws Exception;

	void deleteOrUpdateCase(Cases cases) throws Exception;

	List<Itemmm> getItemmm() throws Exception;

	List<Cases> getCase(String itemmmid) throws Exception;

	Itemmm getItemmmOne() throws Exception;

	void deleteOrUpdateNews(News news) throws Exception;

	void saveOrUpdateOrders(Orders orders) throws Exception;
	
	Kehu getKehuByUsername(String username) throws Exception;
	Kehu getKehuById(int id) throws Exception;
	News getNewsByUsername(String username) throws Exception;
	void saveOrUpdateKehu(Kehu kehu) throws Exception;
	List<Kehu> getKehu() throws Exception;
	void deleteOrUpdateKehu(Kehu kehu) throws Exception;
	
}
